package hci.utils;

import java.awt.Color;
import java.awt.Polygon;
import java.util.ArrayList;
import java.util.Random;

public class MyPolygon {

	private ArrayList<Point> vertexs;
	private Polygon polygon;
	private Color color;
	private Random numGen;
	private String label = null;
	private boolean showingLabel = false;
	private boolean showingLastLine = false;
	
	public MyPolygon() {
		
		vertexs = new ArrayList<Point>();
		numGen = new Random();
		color = new Color(numGen.nextInt(256), numGen.nextInt(256),
				numGen.nextInt(256));
	}
	
	public void setVertexs(ArrayList<Point> vertexs) {
		this.vertexs = vertexs;
	}

	public ArrayList<Point> getVertexs() {
		return vertexs;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public Color getColor() {
		return color;
	}

	public void setPolygon(Polygon polygon) {
		this.polygon = polygon;
	}

	public Polygon getPolygon() {
		return polygon;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getLabel() {
		return label;
	}

	public void setShowingLabel(boolean showingLabel) {
		this.showingLabel = showingLabel;
	}

	public boolean isShowingLabel() {
		return showingLabel;
	}

	public void setShowingLastLine(boolean showingLastLine) {
		this.showingLastLine = showingLastLine;
	}

	public boolean isShowingLastLine() {
		return showingLastLine;
	}
}
